<?php

use think\facade\Route;

//登录及用户信息
Route::rule('userLogin', 'Login/index', 'POST');
Route::rule('saveAvatar', 'User/updateAvatar', 'POST');
Route::rule('savePhone', 'User/updatePhone', 'POST');
Route::rule('saveUser', 'User/update', 'POST');
Route::rule('getUser', 'User/index');
Route::rule('getUserStatistic', 'User/getTopStatistics');
Route::rule('getUserInfoById', 'User/getUserInfoById');

//用户个人信息
Route::rule('getUserInfo', 'UserInfo/index');
Route::rule('saveUserInfo', 'UserInfo/update','POST');
Route::rule('saveUserLabel', 'UserInfo/updateLabel','POST');

//用户关联企业信息
Route::rule('getUserAssociation', 'UserAssociation/index');
Route::rule('saveUserAssociation', 'UserAssociation/update','POST');

//零活
Route::rule('getWorkPublicList', 'Work/publicList');
Route::rule('publicWorkDetail/:id', 'Work/publicDetail');
Route::rule('getOrderBasis', 'Work/getOrderBasis');
Route::rule('getProcessStatusBasis', 'Work/getProcessStatusBasis');
Route::rule('getValuationBasis', 'Work/getValuationBasis');
//我的零活
Route::rule('saveWork', 'MyWork/save','POST');
Route::rule('sendWorkDetail/:id', 'MyWork/sendDetail');
Route::rule('cancelWork', 'MyWork/cancel','POST');
Route::rule('collectWork', 'MyWork/collect','POST');
Route::rule('robWork', 'MyWork/rob','POST');
Route::rule('sendWorkList', 'MyWork/sendList');
Route::rule('collectWorkList', 'MyWork/collectList');
Route::rule('robWorkList', 'MyWork/robList');

//接活/发活须知
Route::rule('pageDetail', 'Pages/detail');

//轮播图
Route::rule('getSwiperList', 'Swiper/index');

//人力资源公司
Route::rule('departmentList','Department/index');
Route::rule('departmentDetail/:id', 'Department/detail');

//评价
Route::rule('comments', 'Department/getListByDepartmentId');
Route::rule('saveComments', 'Comments/handlerComment');
Route::rule('myComments', 'Comments/getMyListByUserId');
Route::rule('userComments', 'Comments/getListByUserId');

//系统公用数据配置
Route::rule('getCategory','Category/getCategory');
Route::rule('getCategoryMultiple', 'Category/getCategoryMultiple','POST');

//意向工种
Route::rule('getWorkType','WorkType/getWorkType');
Route::rule('getIndexMenuWorkType','WorkType/getIndexMenu');

//文件上传
Route::rule('uploadFile', 'File/uploadFile','POST');

//意见反馈
Route::rule('saveFeedBack', 'FeedBack/feedback','POST');
//零工驿站
Route::rule('getPostList', 'Post/list','GET');
Route::rule('getPostDetail', 'Post/detail','GET');

#Route::rule('identityIdCard', 'user/updateIdCard', 'POST');


#Route::rule('smscode', 'sms/code', 'POST'); //此处设定路由后，访问smscode会自动路由到sms/code，并且原来的访问地址会失效

#Route::resource('user','User'); //资源路由 put方法请求 根据put请求自动到update方法，如/user/1
#Route::rule('category/:id', 'category/sub');
#Route::rule('new/:id', 'News/update', 'POST');

